package day05;

import java.util.Arrays;
import java.util.List;

/**
 * @Auther: sky
 * @Date: 2019/3/1 21:33
 * @Description:
 */
public class String2List {


    public static void main(String[] args) {
            String str = "1,2,3,4,5,6";
            List<String> list=Arrays.asList(str);
            list.add("7");
            //会报错：Exception in thread "main" java.lang.UnsupportedOperationException
            //原因是Arrays没有add方法

    }

}
